//
//  Years.m
//  Student
//
//  Created by apple on 15/8/7.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "Years.h"

@implementation Years

- (void)setAge:(int)age
{
    if (age > 100 ||age < 0)
    {
        NSLog(@"输入错误，请重新输入");
        _age = 18;
    }
    else
        _age = age;

}

- (int)age
{
    return _age;
}

- (void)Eat
{
    NSLog(@"我有点不舒服，你能帮我带下饭嘛");

}
@end
